Jetfire Wiki
Jazz CMS
Debug
Jetfire Core
Jetfire Language
Jetfire Web Part
Library
Release Notes
Roles
States
Web Service
Workflow Administration
Quick Search
»
Advanced Search »
Back
Workspace
Modified on 2011/02/25 16:47
by
John
Categorized as
Jetfire Language
===Workspace Overview=== Workspace is represented as a [workflow|workflow object] that has functionality similar to a directory in a file system. The workspace is permanently stored in the [server nexus]. All Workflows reside within a single workspace. Like a file system permissions can be assigned to a workspace via [role]s. Workspaces support: * restricting access to users with specific roles, * restricting access to the objects contained within the workspace to users with specific roles, and * restricting which users can change the Acess Control List of workspace. * caching in the client nexus only objects that have been found via a 'Search' or referenced by another object. {TOC} ===Public Workspace=== When Jetfire is started for the first time a "Public" workspace with no access restrictions is automatically created. All workflow objects that are created will reside inside the public workspace by default. No other workspaces are necessary unless advanced functionalilty is required. ===Creating a Workspace=== Workspaces can be created like any [workflow] with the '[workflow#Creating A Jetfire Workflow Object|new]' construct. It is recommended to make the new workspace a '[workflow#Creating A Jetfire Workflow Object|root]' object as they may be no other references to the workspace. ((( {{ workspace mySpace = new workspace("MyCoolSpace") at root;{br} ))) }} ===Assigning Access Roles=== [role|Roles] can be assigned to a workspace by 2 mechanisms. # A workspace is a workflow, therefor a roles can be assigned as would be [role#Assigning a role to a workflow|assigned to any workflow]. Roles assigned in this manner restrict access to the workspaces and all objects contained in the workspace. # Roles may also be assigned to a workspace so only the contents of workspace have restricted access. This is useful when it is desirable to make the workspace visible, but not its contents. ===Partial Cached Workspace=== A workspace, by default, has its contents fully cached in the client nexus. To restrict which objects are cached the following code can be used. ((( {{ workspace mySpace = new workspace("MyCoolSpace") at root;{br} // The contents of the workspace are only to be cached {br} // in the client nexus when they are explicitly referenced.{br} mySpace.IsAutoCached = false;{br} ))) }} ===See Also=== * [Jetfire Overview] * [Example Code|Example Code - Unit Tests]
Meta Keywords:
Meta Description:
Change Comment:
ScrewTurn Wiki
version 3.0.4.560. Some of the icons created by
FamFamFam
.